#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<math.h>
double function(double a,double b,double c,double d,double x)
{
	return (double)(a * pow(x, 3) + b * pow(x, 2) + c * x + d);
}
int main()
{
	double a = 0, b = 0, c = 0, d = 0;
	scanf("%lf %lf %lf %lf", &a, &b, &c, &d);
	double left, right;

	scanf("%lf %lf", &left, &right);
	double root = (left + right) / 2;
	while (1)
	{
		if (function(a, b, c, d, left) == 0) {
			printf("%.2f",left);
			break;
		}
		if (function(a, b, c, d, right) == 0)
		{
			printf("%.2f", right);
			break;
		}
		if (function(a, b, c, d, root) == 0 || (right - left) < 0.01)
		{
			printf("%.2f", root);
			break;
		}
		else if (function(a, b, c, d, root) * function(a, b, c, d, left) < 0)
		{
			right = root;
			root = (left + right) / 2;
		}
		else if (function(a, b, c, d, root) * function(a, b, c, d, right) < 0)
		{
			left = root;
			root = (left + right) / 2;
		}
	}
	
	return 0;
}